package com.common.dingding;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@MapperScan("com.common.dingding.mapper")
public class DingdingApplication {

    public static void main(String[] args) {

//        SpringApplication.run(DingdingApplication.class, args);
        ConfigurableApplicationContext ctx = SpringApplication.run(DingdingApplication.class, args);
        String webAppType = ctx.getEnvironment().getProperty("spring.main.web-application-type");
        System.out.println("Web Application Type: " + webAppType); // 应输出 "servlet"
    }

}
